package com.fsnbigdata.domain;

import org.hibernate.validator.constraints.Length;
import org.springframework.roo.addon.jpa.annotations.entity.JpaRelationType;
import org.springframework.roo.addon.jpa.annotations.entity.RooJpaRelation;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Created by chen quan zhou
 * 2018/8/29
 * 生物科普
 */
@Entity
public class ZhKopp {
    
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    
    /**
     * 界
     */
    @Length(min=0,max=255,message="生物科普-界长度必须在0-255之间")
    private String kingdom;
    @Length(min=0,max=255,message="生物科普-门长度必须在0-255之间")
    private String phylumn;
    @Length(min=0,max=255,message="生物科普-纲刚长度必须在0-255之间")
    private String t_class;
    @Length(min=0,max=255,message="生物科普-目长度必须在0-255之间")
    private String t_order;
    @Length(min=0,max=255,message="生物科普-科长度必须在0-255之间")
    private String family;
    @Length(min=0,max=255,message="生物科普界-拉丁文名长度必须在0-255之间")
    private String kingdom_en;
    @Length(min=0,max=255,message="生物科普门-拉丁文名长度必须在0-255之间")
    private String phylumn_en;
    @Length(min=0,max=255,message="生物科普纲-拉丁文名长度必须在0-255之间")
    private String t_class_en;
    @Length(min=0,max=255,message="生物科普目-拉丁文名长度必须在0-255之间")
    private String t_order_en;
    @Length(min=0,max=255,message="生物科普科-拉丁文名长度必须在0-255之间")
    private String family_en;
    
    /**
     * 名称
     */
    @NotNull
    @Length(min=1,max=255,message="生物科普-界长度必须在1-255之间")
    private String z_name;
    
    /**
     * 英文名称
     */
    @Length(min=0,max=255,message="生物科普-英文名称长度必须在0-255之间")
    private String name_en;
    
    /**
     * 形态特征（编辑器）
     */
    private String z_character;
    
    /**
     * 起源与演化（编辑器）
     */
    private String z_origin;
    
    /**
     * 生物地理学（编辑器）
     */
    private String z_biogeography;
    
    /**
     * 价值（编辑器）
     */
    private String z_worth;
    
    /**
     * 生物多样性与保护（编辑器）
     */
    private String z_biodiversity;
    
    /**
     * 外来物种与生物入侵（编辑器）
     */
    private String z_alien;

    private String creator;

    
    /**
     * 字母索引
     */
    @Length(min=0,max=255,message="生物科普-字母索引长度必须在0-255之间")
    private String initial;

    public ZhKopp() {
    }

    public ZhKopp(Long id,String kingdom, String phylumn, String t_class, String t_order, String family, String kingdom_en, String phylumn_en, String t_class_en, String t_order_en, String family_en, String z_name, String name_en, String z_character, String z_origin, String z_biogeography, String z_worth, String z_biodiversity, String z_alien, String initial, Date add_time,String creator) {
        this.id = id;
        this.kingdom = kingdom;
        this.phylumn = phylumn;
        this.t_class = t_class;
        this.t_order = t_order;
        this.family = family;
        this.kingdom_en = kingdom_en;
        this.phylumn_en = phylumn_en;
        this.t_class_en = t_class_en;
        this.t_order_en = t_order_en;
        this.family_en = family_en;
        this.z_name = z_name;
        this.name_en = name_en;
        this.z_character = z_character;
        this.z_origin = z_origin;
        this.z_biogeography = z_biogeography;
        this.z_worth = z_worth;
        this.z_biodiversity = z_biodiversity;
        this.z_alien = z_alien;
        this.initial = initial;
        this.add_time = add_time;
        this.creator = creator;
    }

    /**
     * 添加时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    private Date add_time;//创建时间

    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

    public String getKingdom() {
        return kingdom;
    }

    public void setKingdom(String kingdom) {
        this.kingdom = kingdom!=null?kingdom.trim():"";
    }

    public String getPhylumn() {
        return phylumn;
    }

    public void setPhylumn(String phylumn) {
        this.phylumn = phylumn!=null?phylumn.trim():"";
    }

    public String getT_class() {
        return t_class;
    }

    public void setT_class(String t_class) {
        this.t_class = t_class!=null?t_class.trim():"";
    }

    public String getT_order() {
        return t_order;
    }

    public void setT_order(String t_order) {
        this.t_order = t_order!=null?t_order.trim():"";
    }

    public String getFamily() {
        return family;
    }

    public void setFamily(String family) {
        this.family = family!=null?family.trim():"";
    }

    public String getKingdom_en() {
        return kingdom_en;
    }

    public void setKingdom_en(String kingdom_en) {
        this.kingdom_en = kingdom_en!=null?kingdom_en.trim():"";
    }

    public String getPhylumn_en() {
        return phylumn_en;
    }

    public void setPhylumn_en(String phylumn_en) {
        this.phylumn_en = phylumn_en!=null?phylumn_en.trim():"";
    }

    public String getT_class_en() {
        return t_class_en;
    }

    public void setT_class_en(String t_class_en) {
        this.t_class_en = t_class_en!=null?t_class_en.trim():"";
    }

    public String getT_order_en() {
        return t_order_en;
    }

    public void setT_order_en(String t_order_en) {
        this.t_order_en = t_order_en!=null?t_order_en.trim():"";
    }

    public String getFamily_en() {
        return family_en;
    }

    public void setFamily_en(String family_en) {
        this.family_en = family_en!=null?family_en.trim():"";
    }

    public String getZ_name() {
        return z_name;
    }
    
    public void setZ_name(String z_name) {
        this.z_name = z_name!=null?z_name.trim():"";
    }
    
    public String getName_en() {
        return name_en;
    }
    
    public void setName_en(String name_en) {
        this.name_en = name_en!=null?name_en.trim():"";
    }
    
    public String getZ_character() {
        return z_character;
    }
    
    public void setZ_character(String z_character) {
        this.z_character = z_character!=null?z_character.trim():"";
    }
    
    public String getZ_origin() {
        return z_origin;
    }
    
    public void setZ_origin(String z_origin) {
        this.z_origin = z_origin!=null?z_origin.trim():"";
    }
    
    public String getZ_biogeography() {
        return z_biogeography;
    }
    
    public void setZ_biogeography(String z_biogeography) {
        this.z_biogeography = z_biogeography!=null?z_biogeography.trim():"";
    }
    
    public String getZ_worth() {
        return z_worth;
    }
    
    public void setZ_worth(String z_worth) {
        this.z_worth = z_worth!=null?z_worth.trim():"";
    }
    
    public String getZ_biodiversity() {
        return z_biodiversity;
    }
    
    public void setZ_biodiversity(String z_biodiversity) {
        this.z_biodiversity = z_biodiversity!=null?z_biodiversity.trim():"";
    }
    
    public String getZ_alien() {
        return z_alien;
    }
    
    public void setZ_alien(String z_alien) {
        this.z_alien = z_alien!=null?z_alien.trim():"";
    }

    public String getInitial() {
        return initial;
    }
    
    public void setInitial(String initial) {
        this.initial = initial;
    }
    
    public Date getAdd_time() {
        return add_time;
    }
    
    public void setAdd_time(Date add_time) {
        this.add_time = add_time;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
}





